package org.itboys.portal.entity;

import java.util.Date;
import java.util.List;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
import org.mongodb.morphia.annotations.Transient;


/**
 * @author 作者 huml
 * @version 创建时间：2016-3-30 下午2:40:05
 *          资讯评论或点赞
 */
@Entity(value = "PortalInfoComment", noClassnameStored = true)
public class PortalInfoComment extends PortalBaseEntity {

    private static final long serialVersionUID = 6357247361359344659L;

    public static final Integer TYPE_COMMENT = 0;//评论
    public static final Integer TYPE_GOOD = 1;//点赞

    @Indexed
    private long memberId;
    @Indexed
    private Long infoId;//动态的id
    private Integer type;//评论还是点赞
    private Long objId;//评论人或是点赞人的id
    private String content;//评论的内容
    private Long parentId = 0L;//父评论的id 等于0说明是直接评论动态,大于0说明是在回复评论
    private Long parentObjId;//如果是回复别人的评论,把被回复人的id记录下来

    private List<String> images;//图片集合

    @Transient
    private String nickName;//评论人昵称

    private Date commentTime;//评论时间

    private String time;

    private String logo;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }


    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(long memberId) {
        this.memberId = memberId;
    }

    public Long getInfoId() {
        return infoId;
    }

    public void setInfoId(Long infoId) {
        this.infoId = infoId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getObjId() {
        return objId;
    }

    public void setObjId(Long objId) {
        this.objId = objId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentObjId() {
        return parentObjId;
    }

    public void setParentObjId(Long parentObjId) {
        this.parentObjId = parentObjId;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }
}
